import { z } from 'zod';
import { anchorColorSchema } from './anchorColors.js';
import { hexColor } from './hexColor.js';
export const colorsSchema = z
    .object({
    primary: hexColor,
    light: hexColor.optional(),
    dark: hexColor.optional(),
    background: z
        .object({
        light: hexColor.optional(),
        dark: hexColor.optional(),
    })
        .optional(),
    anchors: anchorColorSchema.optional(),
    // Prevent strict() from throwing an error when the user defines a deprecated ultraLight / ultraDark color.
    ultraLight: z.any().optional(),
    ultraDark: z.any().optional(),
})
    .strict()
    .describe('The colors to use in your documentation. At the very least, you must define the primary color. For example: { "colors": { "primary": "#ff0000" } }');
